package Thread;

public class MyThread extends Thread {
    @Override
    public void run() {
        //线程内任务
        System.out.println(getName()+"线程正在执行");
    }

    public static void main(String[] args) {
        System.out.println("主线程...begin");
        MyThread myThread1 = new MyThread();
        myThread1.start();
        System.out.println("主线程...end");
    }
}
